<!--
    分页组件
-->
<template>
  <a-pagination
    v-bind="attrs"
    :total="total"
    show-size-changer
    show-quick-jumper
    :showTotal="
      () => {
        return `共${total}条数据`
      }
    "
  >
  </a-pagination>
</template>

<script setup lang="ts">
import { useAttrs } from '@vue/runtime-core'
let attrs = useAttrs()
interface IPaginationProps {
  total: number
}
withDefaults(defineProps<IPaginationProps>(), {
  total: 0
})
</script>

<style scoped></style>
